import request from "@/utils/request"
//查询全部
export function queryAll(page, limit) {
  return request({
    url: `/joinservice/join-role/getRoleByPage/${page}/${limit}`,
    // url: `/joinservice/join-role/getAllRoles`,
    // method: 'GET',
    method: 'POST',
    data: {
      "clubId": "",
      "id": "",
      "role": ""
    }
  })
}
//新增
export function add(from) {
  return request({
    url: `/joinservice/join-role/addRole`,
    method: 'POST',
    data: from
  })
}
//修改
export function mod(id, from) {
  return request({
    url: `/joinservice/join-role/updateRoleById/${id}`,
    method: 'PUT',
    data: from
  })
}
//删除
export function del(id) {
  return request({
    url: `/joinservice/join-role/deleteRoleById/${id}`,
    method: 'DELETE',
  })
}